<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAkbusPayOthersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('akbus_pay_others', function (Blueprint $table) {
            $table->id();
            $table->string('type')->nullable()->comment('类型');
            $table->decimal('amount', 10, 2)->nullable()->comment('金额');
            $table->date('month')->nullable()->comment('月份');
            $table->tinyInteger('object_type')->nullable()->comment('设置范围');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('akbus_pay_others');
    }
}
